package com.yuezhu.versionup;


import android.content.Context;
import android.os.Handler;

import java.util.List;

/**
 * 储存每个下载的url总信息
 * @author zuo
 */
public class DownloadInfo {
	
	private int fileSize;// 文件大小
	private int compeleteSize;//完成度
	private String downUrl;// 下载地址
	private String taskId;// 下载任务编号
	
	private List<DownloadInfoTask> childDownInfos;
	
	
	//辅助信息,下载线程使用
	private Context myContext;
	private Handler msgHandler;// 消息处理器
		
	public DownloadInfo() {
	}

	public int getFileSize() {
		return fileSize;
	}

	public void setFileSize(int fileSize) {
		this.fileSize = fileSize;
	}

	public String getDownUrl() {
		return downUrl;
	}

	public void setDownUrl(String downUrl) {
		this.downUrl = downUrl;
	}

	public List<DownloadInfoTask> getChildDownInfos() {
		return childDownInfos;
	}

	public void setChildDownInfos(List<DownloadInfoTask> childDownInfos) {
		this.childDownInfos = childDownInfos;
	}

	public int getCompeleteSize() {
		return compeleteSize;
	}

	public void setCompeleteSize(int compeleteSize) {
		this.compeleteSize = compeleteSize;
	}

	public Context getMyContext() {
		return myContext;
	}

	public void setMyContext(Context myContext) {
		this.myContext = myContext;
	}

	public Handler getMsgHandler() {
		return msgHandler;
	}

	public void setMsgHandler(Handler msgHandler) {
		this.msgHandler = msgHandler;
	}

	public String getTaskId() {
		return taskId;
	}

	public void setTaskId(String taskId) {
		this.taskId = taskId;
	}
}